%%%HEADER%%%

OpenFeint Android Quick Start Guide


<<Prev Next >>
 
Obfuscate your code with ProGuard We recommend that you obfuscate your application code before release. For your convenience ProGuard config is integrated with our example. You should download android SDK2.3 or above, it has ProGuard built in. ProGuard integrates easily with Ant but cannot be integrated into the Eclipse build process. Reference http://developer.android.com/guide/developing/other-ide.html for help in setting up an Ant build environment.

Important!
Be sure to copy or merge proguard.cfg from OpenFeint’s example application and place them into your Android project’s root directory.

Do not use the proguard.cfg that is generated for you.


If you experience any issues co-existing with Eclipse you might want to modify your local.properties file to re-direct the out.classes.dir to the same spot as Eclipse by default:

out.classes.dir=bin/ 

Building with ant debug or ant release will now obfuscate your code as part of the build process.

To make a build without obfuscation for whatever reason, simply set the property noobfuscate to true:

ant -Dnoobfuscate=true debug ant -Dnoobfuscate=true release